package TemplateCode;

import TemplateCode.Discount.DiscountStrategy;

public class MovieTicket {
    private double originalPrice;
    private double discountPrice;
    private DiscountStrategy discountStrategy;

    public double discountCalculate(){
        return this.discountPrice=discountStrategy.calculate(this.originalPrice);
    }

    public double getDiscountPrice() {
        return discountPrice;
    }


    public double getOriginalPrice() {
        return originalPrice;
    }

    public void setOriginalPrice(double originalPrice) {
        this.originalPrice = originalPrice;
    }

    public DiscountStrategy getDiscountStrategy() {
        return discountStrategy;
    }

    public void setDiscountStrategy(DiscountStrategy discountStrategy) {
        this.discountStrategy = discountStrategy;
    }
}
